/****************************************************************
 * <strong>MFField标签类</strong>
 * <p>
 * 标签类
 * </p>
 *
 * @author AndyZhang 2011
 * @version 0.1
 * ToDo:
 ***************************************************************/
package com.thinkwide.data.ormapping.annotation;

import com.thinkwide.data.ormapping.enums.MFFieldFill;
import com.thinkwide.data.ormapping.enums.MFFieldStrategy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface MFField {
    String fieldName() default "";

    String fieldType() default "";

    boolean allowNull() default true;

    boolean primaryKey() default false;

    int fieldLength() default 255;

    String update() default "";

    MFFieldStrategy insertStrategy() default MFFieldStrategy.DEFAULT;

    MFFieldStrategy updateStrategy() default MFFieldStrategy.DEFAULT;

    MFFieldFill fill() default MFFieldFill.DEFAULT;
}
